package old2.Map;

import java.util.HashMap;

public class MapDemo {
    public static void main(String[] args) {
        HashMap<String, Integer> map = new HashMap<>();
        map.put("语文",98);
        map.put("数学",99);
        map.put("化学",96);
        map.put("物理",92);
        System.out.println(map);
        System.out.println(map.size());
        System.out.println(map.get("英语"));
        System.out.println(map.containsKey("物理"));
        System.out.println(map.containsValue(96));
        map.clear();

    };
}
